package inheritance;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        Person p1 = s1;
        p1.setName("Lily");
        ((Student) p1).setStudentNum(02);
        System.out.println(p1.getName());
        System.out.println(((Student) p1).getStudentNum());
    }
}
